﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TieWPF.Assets
{
    /// <summary>
    /// ProductionControl.xaml 的交互逻辑
    /// </summary>
    public partial class ProductionControl : UserControl
    {
        // 所在设备
        public static readonly DependencyProperty DeviceProperty =
            DependencyProperty.Register("Device", typeof(string), typeof(ProductionControl), new PropertyMetadata(default(string)));

        public string Device
        {
            get => (string)GetValue(DeviceProperty);
            set => SetValue(DeviceProperty, value);
        }

        // 加工工序
        public static readonly DependencyProperty ProcessProperty =
            DependencyProperty.Register("Process", typeof(string), typeof(ProductionControl), new PropertyMetadata(default(string)));

        public string Process
        {
            get => (string)GetValue(ProcessProperty);
            set => SetValue(ProcessProperty, value);
        }

        // 装载的产品
        public static readonly DependencyProperty ProductProperty =
            DependencyProperty.Register("Product", typeof(string), typeof(ProductionControl), new PropertyMetadata(default(string)));

        public string Product
        {
            get => (string)GetValue(ProductProperty);
            set => SetValue(ProductProperty, value);
        }

        static ProductionControl()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ProductionControl), new FrameworkPropertyMetadata(typeof(ProductionControl)));
        }
    }
}
